package org.dtrd.modules.ocr.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.ocr.entity.po.DtrdEntRdOcrMapping;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sun
 * @since 2022-09-06
 */
@Getter
@Setter
@ApiModel(value = "列表信息", description = "")
public class OcrMappingListInfo {

    private Integer dataId;

    @ApiModelProperty("关键字")
    private String word;

    @ApiModelProperty("映射实体")
    private String mappingEntity;

    @ApiModelProperty("映射字段")
    private String mappingField;

    @ApiModelProperty("映射文本")
    private String mappingText;



    public OcrMappingListInfo (DtrdEntRdOcrMapping po) {
        dataId = po.getDataId();
        word = po.getWord();
        mappingEntity = po.getMappingEntity();
        mappingField = po.getMappingField();
        mappingText = po.getMappingText();
    }
}
